#ifndef SKMODELCONSTRAINT_H
#define SKMODELCONSTRAINT_H
#include <list>
#include <QAbstractTableModel>
#include <QtCore/QObject>
#include "../SketchModelWrapper.h"

using namespace common;

class SkModelConstraint : public QAbstractTableModel
{
Q_OBJECT

	SketchModelWrapper* model;
	std::list<ConstraintData>* lista;
public:

    explicit SkModelConstraint(SketchModelWrapper* modelo,QObject *parent = 0);
    int rowCount( const QModelIndex & parent = QModelIndex() ) const ;
    int columnCount ( const QModelIndex & parent = QModelIndex() ) const;
    QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const;
    bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole ) ;
    QVariant headerData(int section, Qt::Orientation orientation,int role = Qt::DisplayRole) const;
    Qt::ItemFlags flags(const QModelIndex &index) const;

    void resetList();


    //void QAbstractItemModel::reset ()
    ~SkModelConstraint();


};

#endif // SKMODELCONSTRAINT_H
